package com.swap;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 */

// 指定要扫描的Mapper类的包的路径
//@MapperScan("com.swap.business.mapper")
//开启MQTT开启异步线程并配置处理方式
//@EnableAsync(proxyTargetClass=true)
@SpringBootApplication
@EnableScheduling
@Slf4j
@EnableAsync
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
        log.info("交换机设备监控系统启动成功...");
    }
}
